package com.nothing.thread.task;

import javax.swing.text.Segment;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.ForkJoinTask;

public class Test {
    public static void main(String[] args) throws ExecutionException, InterruptedException {
        ForkJoinTestTask task = new ForkJoinTestTask();
        ForkJoinPool forkJoinPool = new ForkJoinPool();
        ForkJoinTask forkJoinTask = forkJoinPool.submit(task);
        System.out.println(forkJoinTask.get());
        Test test = new Test();
        Thread s;
    }
}
